let base = 'mall-merchant';
let order = 'mall-order';
let mall = 'mall-product';
let merchantServer = 'merchant-server';
let mallMarket = 'mall-market';


const api = {
	login: base + '/merchant/login', //商家登录 账号：15528555558，密码：123456
	roles: base + '/merchant/roles', //查询商家角色 返回一个直接跳转 返回两个进行选择
	mallOrderList: order + '/merchant/admin/order/list', //订单列表
	mallOrderDetails: order + '/merchant/admin/order/details', //新订单详情
	mallOrderUpdate: order + '/merchant/admin/order/update', //修改订单收货信息
	mallOrderLogistics: order + '/merchant/admin/order/logistics', //查询物流
	mallList: mall + '/merchant/admin/product', //查询商品列表
	transItems: base + '/merchant/admin/sweet/transItems', //获取商户糖果账户提现记录列表
	transItemsSweet: base + '/merchant/admin/sweet', //商户糖果账户申请提现
	sweet: base + '/merchant/admin/sweet', //获取商户糖果账户
	sweetQuery: base + '/merchant/admin/sweet/query', //商户获取糖果账户明细记录
	imageUpload: base + '/merchant/admin/upload', //上传授权书或其他资料图片
	noticeHomePage: base + '/merchant/admin/notice/homePage', // 首页轮播显示商户公告列表
	noticeDetail: base + '/merchant/admin/notice/detail', //商户公告详情
	noticeList: base + '/merchant/admin/notice', //商户公告列表
	sweetTransfer: base + '/merchant/admin/sweet/transfer', //糖果账户划转
	adminAccount: base + '/merchant/admin/account', //查询商家预付金账户明细列表
	accountBanlace: base + '/merchant/admin/account', //查询商家预付金账户
	getconfig: base + '/merchant/admin/account/recharge/config', //获取商家预付金充值账号信息
	accountRecharge: base + '/merchant/admin/account/recharge', //查询商家预付金账户充值记录列表
	rechargeUpload: base + '/merchant/admin/account/recharge/upload', //上传充值截图
	rechargeApply: base + '/merchant/admin/account/recharge', //充值申请
	accountStatistics: base + '/merchant/admin/account/statistics', // 查询商家预付金账户明细统计
	//线上商户保证金接口
	getMerchantBond: merchantServer + '/merchant/bond/getMerchantBond', //保证金展示
	getBond: merchantServer + '/merchant/bond/getBond', //获取保证金
	bondRecordApply: merchantServer + '/merchant/bond/bondRecordApply', //保证金申请退回
	bondPay: merchantServer + '/merchant/bond/bondPay', //保证金缴纳
	bondPayNotOnly: merchantServer + '/merchant/bond/bondPayNotOnly',//线上商家补缴保证金
	getBondDeductionRecord: merchantServer + '/merchant/bond/getBondDeductionRecord',//获取线上商家保证金扣除列表
	//商品列表
	getGoldenBeanPrice: mall+'/merchant/admin/product/getGoldenBeanPrice',//获取金豆的抵扣棵数和参考价格
	unlock: mall + '/merchant/admin/product/unlock/need', //判读是否需要解锁商品
	positionBuy: base + '/merchant/admin/position/buy', //购买商品位
	positionPrice: base + '/merchant/admin/position/price', //商品位售卖价格
	queryData: base + '/merchant/admin/product', //查询商品列表
	merchantSimple: base + '/merchant/admin/simple', //查询商户名称和手机号获取商户列表
	brandList: mall + '/merchant/admin/product/brand', //获取品牌列表
	mallDeductRate: mall + '/merchant/admin/product/deductRate', //获取糖果抵扣率配置
	productGroupList: mall + '/merchant/admin/product/list', //获取商品分组列表
	ProductInfo: mall + '/merchant/admin/product/productInfo', //平台获取商品基本信息
	mallStatus: mall + '/merchant/admin/product/status', //商品上架下架
	mallDelete: mall + '/merchant/admin/product', //商品删除
	categoryList: mall + '/merchant/admin/product/category', //获取商品类目数据
	mallCalculate: mall + '/merchant/admin/product/calculate', //计算返回商品当天实时参考价格
	transportQuery: mall + '/merchant/admin/transport/query', //根据商家id 查询对应的运费模板
	mallAdd: mall + '/merchant/admin/product', //新增商品
	mallProgress: mall + '/merchant/admin/product/progress', //修改商品添加进度
	mallSubmit: mall + '/merchant/admin/product/submit', //发布商品
	mallUpdate: mall + '/merchant/admin/product', //修改商品基本信息
	productUndo: mall + '/merchant/admin/product/undo', //商户撤销发布商品
	oneUndercarriage: mall + '/merchant/admin/product/oneUndercarriage', //商家一键下架商品
	//商品媒体信息管理
	mediaUploadImage: mall + '/merchant/admin/product/media/uploadImage', //上传商品图片
	mediaDelete: mall + '/merchant/admin/product/media', //删除商品媒体信息
	mediaUpdate: mall + '/merchant/admin/product/media/update', //修改商品媒体信息
	mediaImgUpload: mall + '/merchant/admin/product/media/uploadDetailsImage', //上传商品详情图片
	productDetails: mall + '/merchant/admin/product/details', //修改富文本商品详情
	attrValueInfo: mall + '/merchant/admin/product/attrValueInfo', //平台获取商品参数信息
	mediaInfo: mall + '/merchant/admin/product/mediaInfo', //平台获取商品媒体信息
	mediaSort: mall + "/merchant/admin/product/media/sort", //批量排序商品主图
	//商品参数管理
	productAttrValue: mall + '/merchant/admin/product/attrValue', //批量新增商品参数和参数数，编辑，休改
	batchDelete: mall + '/merchant/admin/product/attrValue',
	//新增商品sku列表
	skuInfo: mall + '/merchant/admin/product/sku', //平台获取商品sku分页列表--admin:product:sku:list
	skuAdd: mall + '/merchant/admin/product/sku', //新增商品sku列表
	skuUpdate: mall + '/merchant/admin/product/sku/update', //修改商品sku列表
	delSku: mall + '/merchant/admin/product/sku', //删除商品sku
	skusingle: mall + '/merchant/admin/product/sku/single', //单独修改商品sku
	skusingleAdd: mall + '/merchant/admin/product/sku/single', //单独添加商品sku
	skuskuUploadSkuImage: mall + '/merchant/admin/product/sku/uploadSkuImage', //上传商品sku图片
	spec: mall + '/merchant/admin/product/spec', //获取商品规格和属性列表
	detail: mall + '/merchant/admin/product/spec/detail', //新增
	skuInventories: mall + '/merchant/admin/product/sku/inventories', //获取商品库存变更记录
	skuInventoriesRecords: mall + '/merchant/admin/product/sku/inventories/records', //平台获取商品库存变更记录
	mallSpec: mall + '/merchant/admin/product/spec', //获取商品规格和属性列表
	//运费模版
	shippingList: mall + '/merchant/admin/transport/list', //查询模板列表
	transportQuery: mall + '/merchant/admin/transport/query', //根据商家id 查询对应的运费模板
	regionList: mall + '/merchant/admin/transport/region/list', //查询城市信息
	shippingAdd: mall + '/merchant/admin/transport/add', //新增
	shippingEdit: mall + '/merchant/admin/transport/edit/list', //查询编辑数据
	shippingIsActive: mall + '/merchant/admin/transport/isActive', //是否启用
	shippingUpdate: mall + '/merchant/admin/transport/update', //修改
	shippingDelete: mall + '/merchant/admin/transport/delete', //删除
	//商品订单
	orderExcelExport: order + '/merchant/admin/order/excel/export', //
	mallOrderList: order + '/merchant/admin/order/list', //订单列表
	mallOrderDetails: order + '/merchant/admin/order/details', //订单详情
	mallOrderDeliver: order + '/merchant/admin/order/deliver', //订单发货
	mallOrderLogistics: order + '/merchant/admin/order/logistics', //查询物流
	mallOrderUpdate: order + '/merchant/admin/order/update', //修改订单收货信息
	orderPickUp: order + '/merchant/admin/order/pickUp', //订单已提货
	//售后单
	afterSaleList: order + '/merchant/admin/afterSale/list', //售后单列表
	afterSaleDetail: order + '/merchant/admin/afterSale/details', //售后单列详情
	afterSaleRefund: order + '/merchant/admin/afterSale/refund', // 审核售后单
	/*同城配送 start*/
	deliverylist: mall + '/merchant/admin/delivery/list', //查询列表
	deliveryQuery: mall + '/merchant/admin/delivery/query', //根据商家id 查询对应的同城模板
	deliveryAdd: mall + '/merchant/admin/delivery/add', //新增
	deliveryDel: mall + '/merchant/admin/delivery/del', //删除
	deliveryUpdate: mall + '/merchant/admin/delivery/update', //编辑
	deliveryIsActive: mall + '/merchant/admin/delivery/isActive', //是否启用
	/*同城配送 end*/
	/*商城分配记录 start*/
	recordList: order + '/merchant/admin/record/list', //商城分配记录列表---admin:record:list
	recordStatistics: order + '/merchant/admin/record/statistics', //分配统计
	/*商城分配记录end*/
	/* 商城活动管理 */
	activityList: base + '/merchant/admin/activity/list', // 活动列表
	activityDetails: base + '/merchant/admin/activity/details', //领取页面详情
	activityCancel: base + '/merchant/admin/activity/cancel', //取消活动
	/* 商城活动管理 end */

	/** 套餐服务 */
	combo: base + '/merchant/admin/combo', //商户后台获取套餐服务
	combBuy: base + '/merchant/admin/combo/buy', //购买套餐
	combRenewal: base + '/merchant/admin/combo/renewal', //续期套餐
	combUpgrade: base + '/merchant/admin/combo/upgrade', // 升级套餐
	combAvailable: base + '/merchant/admin/combo/available', // 获取正在使用的套餐
	/** 套餐服务 end */

	/*开通微信线上支付 start*/
	bankList: merchantServer + '/open/data/wx/bank', //微信银行列表
	wxOnline: merchantServer + '/merchant/pay-channel/wx-online', //开通微信线上支付
	baseInfo: merchantServer + '/merchant/info', //商户后台详情
	payChannel: merchantServer + '/merchant/pay-channel', //查询支付渠道开通状态
	queryPayChannel: merchantServer + '/merchant/', //查询商家对应支付渠道进件信息
	secUpdate: merchantServer + '/merchant/pay-channel/apply', //修改对应支付渠道的进件信息
	merchantBalance: merchantServer + '/merchant/balance', //查询商家余额
	merchantWithdraw: merchantServer + '/merchant/withdraw', //商家提现
	city: '/composite/open/region', //获取六位省市区
	wxOnlineBank: merchantServer + '/merchant/wx-online/bank', //修改商家对应支付渠道的结算银行卡
	wxOnlineBankGet: merchantServer + '/merchant/wx-online/bank', //获取商家对应支付渠道的结算银行卡
	/*开通微信线上支付 end*/
	/** 拼团 */
	spellGroup: mallMarket + '/merchant/admin/spell-group', // 查询拼团活动列表 get post put
	spellGroupConfig: mallMarket + '/merchant/admin/spell-group/config', // 查询拼团配置
	spellGroupRecall: mallMarket + '/merchant/admin/spell-group/recall', // 撤销提交
	spellGroupSubList: mallMarket + '/merchant/admin/spell-group/subList', //查询拼团子团列表
	spellGroupUserList: mallMarket + '/merchant/admin/spell-group/rp/userList', // 商家查询红包拼团参团用户列表
	spellGroupCalculate: mallMarket + '/merchant/admin/spell-group/calculate/expect', // 计算拼团创建预计信息
	/** 拼团 end */
	/** 金豆 */
	goldenBeanDetail: base + '/merchant/admin/goldenBean/detail',//商家金豆明细
	goldenBeanTransfer: base + '/merchant/admin/goldenBean/transfer',//商家金豆划转
	goldenBeanBalance: base + '/merchant/admin/goldenBean/getGoldenBean',//查询商家金豆余额
}
export default api;
